import { Code, Color, CreateDate, Desc, DisplayOrder, Entity, Icon, Int, PrimaryKey, Title, UpdateDate } from "@sker/core";
import { PrimaryGeneratedColumn } from "typeorm";


@Entity({ name: 'jd_hotel_policy_type' })
export class JdHotelPolicyType {
    @PrimaryGeneratedColumn({})
    id: number;

    @Code({ comment: '分类' })
    type: string;

    @Title({ comment: '英文', default: '', nullable: true })
    name: string;

    @Title({ comment: '中文', default: '', nullable: true })
    name_cn: string;

    @Color({ comment: '特殊颜色', default: '' })
    color: string;

    @Icon({ comment: '图标', default: '' })
    icon: string;

    @Desc({ nullable: true })
    desc: string;

    @CreateDate()
    create_date: Date;

    @DisplayOrder()
    displayorder: number;

    @UpdateDate()
    update_date: Date;
}